package com.smartx.app.util.libimage;

import android.widget.ImageView;

import java.io.File;

/**
 * @author: tangjie
 * @date: 2017/3/22 11:21
 * @Description:
 */

public interface BaseImageLoaderStrategy {

    interface Callback {

        void onLoadingComplete(File image);

        void onLoadingFailed();

        void onStart();

        void onProgress(int progress);

        void onFinish();

    }

    void displayImage(String imageUrl, ImageView imageView);

    void displayImage(String imageUrl, ImageView imageView, ImageConfig imageConfig);

    void loadImage(String imageUri, ImageConfig optionsImage, Callback callback);

    void pauseRequests();

    void resumeRequests();
}
